<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>fzyEditor MD 编辑器</title>
    <meta name="referrer" content="no-referrer">
    <script src="layui/layui.js"></script>
    <script src="js/config.js"></script>
    <link rel="stylesheet" href="css/preview.css" media="all" />
</head>
<body>
<h1>编辑器示例</h1>
<div id="editor"></div>
<script>
    layui.use('fzyEditor', function () {
        var fzyEditor = layui.fzyEditor;

        const editor = fzyEditor.render('editor',{
            theme:'light',
            enabled:true,
            uploadFile:{
                url:'/data/uploadFile.json',
                data:{}
            },
            uploadImage: {
                url:'/data/uploadFile.json',
                data:{}
            },
            // uploadAudio:{
            //     url:'/data/uploadFile.json',
            //     data:{}
            // },
            player: 'http://www.fengzhiya.cn/player/index.html?url=',
            // player: 'http://docs.fzy.com/back/player/index.html?url=',
        });
    });
</script>
</body>
</html>